package facade;

public class DvdPlayer {

    private String name;
    private String movie;

    public DvdPlayer() {
        this.name = "Top-O-Line" + " DVD Player";
    }

    public String getName() {
        return name;
    }

    public void on() {
        System.out.println(this.name + " on");
    }

    public void off() {
        System.out.println(this.name + " off");
    }

    public void play(String movie) {
        if (movie != null) {
            this.movie = movie;
            System.out.println(this.name + " playing \"" + this.movie + "\"");
        }
    }

    public void stop() {
        if (this.movie != null) {
            System.out.println(this.name + " stopped \"" + this.movie + "\"");
        }
    }

    public void eject() {
        System.out.println(this.name + " eject");
    }

}
